package contegor.scire.core;

/**
 * Float based {@link IdFragment}.
 * 
 * @version $Revision$
 * @author  Héctor Cirbián Pousa ($Author$)
 */
public class FloatIdFragment extends NumericIdFragment {
  private static final long serialVersionUID = -7989365957540807812L;

  private float number;

  public FloatIdFragment(float number) {
    super();
    this.number = number;
  }

  @Override
  public int hashCode() {
    return (int)this.number;
  }

  @Override
  public String toString() {
    return String.valueOf(this.number);
  }

  @Override
  public Number getNumber() {
    return number;
  }
}
